<html lang="en">
<head>
       <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>审核评估</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/x-icon" href="/favicon.ico">
    <link rel="stylesheet" href="/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="/assets/css/app.css">
    <style>
        .am-panel-bd {
            padding: 0.25rem 0;
            height: auto;
        }
    </style>

</head>
<body>
    <div class="am-container am-g am-g-collapse">
        <div class="am-u-md-12 am-u-sm-12">
            <img src="/assets/img/logo.png" class="am-img-responsive" />
        </div>
        <!--<div class="am-u-md-4 am-u-sm-12">
            <img src="/assets/img/top_bj2.jpg" class="am-img-responsive" />
        </div>-->
    </div>

    <div class="am-container">
        <div class="am-topbar am-topbar-inverse">
            <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

            <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
                <ul class="am-nav am-nav-pills am-topbar-nav">
                    <li class="am-active"><a href="/">网站首页</a></li>
					{{range $k,$v:= .Bigclasslist}}{{if $v.List_1}}<li><a href="/list-1/{{$v.Id}}">{{$v.Name}}</a></li>{{else}}<li><a href="/list/{{$v.Id}}">{{$v.Name}}</a></li>{{end}}{{end}}
                </ul>

                <!-- <form class="am-topbar-form am-topbar-right am-form-inline am-input-group-primary" role="search">
                    <div class="am-input-group am-input-group-sm">
                        <input type="text" id="tmut" class="am-form-field" placeholder="请输入关键字" value="{{.N}}">
                        <span class="am-input-group-btn">
                                <button class="am-btn am-btn-default"  onclick="search()" type="button">搜索</button>
                        </span>
                    </div>
                </form> -->
            </div>
        </div>
    </div>

    <div class="am-container am-g am-g-collapse">
        <div class="am-u-sm-12 am-u-md-12">
            <div class="am-panel am-panel-primary">
                <div class="am-panel-hd"><a href="/" class="title-nav">审核评估</a> » <a href="/list/{{.BigClassId}}" class="title-nav">{{.BigClassName}}</a></div>
                <div class="am-panel-bd">
                    <div data-am-widget="list_news" class="am-list-news am-list-news-default">
                        <div class="am-list-news-hd am-cf">
                            <a href="##" class="">
                                <h2>{{.BigClassName}}</h2>
                            </a>
                             <div id="tsxbody"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <ul class="am-pagination am-pagination-centered">
       <div id="pageNav1" style="text-align:center"></div>
    </ul>
	<div class="am-container">
	<form class="am-topbar-form  am-form-inline am-input-group-primary" role="search">
                    <div class="am-input-group am-input-group-sm" style="width:100%">
                        <input type="text" id="tmut" class="am-form-field" placeholder="请输入关键字" value="{{.N}}">
				<span class="am-input-group-label"  onclick="search()" type="button"><i class="am-icon-search"></i></span>
                    </div>
        </form>
		<div>

{{template "footer" }}
  <script src="/assets/js/jquery.min.js"></script>
  <script src="/assets/js/amazeui.min.js"></script>
  <script src="/assets/layer/layer.js"></script>
  <script src="/assets/js/app.js"></script>
<script src="/assets/laypage/laypage.js"></script>
<script type="text/javascript">
   $(function(){
            _init(1,20);
        })
   function _init(pi,ps){
            $.AMUI.progress.start();
            $.post("/search/data",{s:pi,c:ps,n:$("#tmut").val().trim()},function(data){
                if(data.status===1&&data.count>0){

                    var list='';
                    var index=0;
                    list+='<ul class="am-list am-text-truncate am-list-compact am-list-striped am-margin-vertical-lg">';
                   $.each(data.data,function(k,v){
                        list+='<li><a href=\'/detail/'+v.Id+'\'' ;
                        list+='class="am-text-truncate"><i class=" am-icon-angle-double-right"></i><span class="am-padding-horizontal-sm am-text-default am-text-truncate">'+v.Title+'</span></a><span class="am-list-date am-hide-sm-only">'+v.Updatetime+'</span></li>'
                        index+=1;
                        if(index%5==0){
                             list+='</ul>';
                             list+='<ul class="am-list am-text-truncate am-list-compact am-list-striped am-margin-vertical-lg">';
                        }
                    });
                   list+='</ul>';
                    $("#tsxbody").html(list);
                     laypage({
                        cont: $('#pageNav1'),
                        pages: Math.ceil(data.count / ps),
                        curr: pi || 1,
                        skip: false,
                        jump: function (obj, first) {
                            // $('#msg').html('注：第'+obj.curr+'/'+obj.pages+'页&nbsp;&nbsp;&nbsp;(共'+data.count +'条)');
                            if (!first) {
                                _init(obj.curr, ps);
                            }
                        }
                    });
                }else{
                $("#tsxbody").html('');
                $('#pageNav1').html('未查询到相关信息');
                }
            $.AMUI.progress.done();
            },"json")
        }
		function search(){
            _init(1,20);
        }
</script>

</body>
</html>
